import request from '@/utils/request'

// 查询金额明细列表
export function listAmountInfo(query) {
  return request({
    url: '/course/AmountInfo/list',
    method: 'get',
    params: query
  })
}

// 查询金额明细列表
export function otherlistAmountInfo(query) {
  return request({
    url: '/course/AmountInfo/otherList',
    method: 'get',
    params: query
  })
}

// 查询可提现金额
export function getAmountInfo(id) {
  return request({
    url: '/course/AmountInfo/view/' + id,
    method: 'get'
  })
}
// 查询金额明细详细
export function findCashAmount() {
  return request({
    url: '/course/AmountInfo/findCashAmount',
    method: 'get'
  })
}

// 新增金额明细
export function addAmountInfo(data) {
  return request({
    url: '/course/AmountInfo/add',
    method: 'post',
    data: data
  })
}

// 修改金额明细
export function updateAmountInfo(data) {
  return request({
    url: '/course/AmountInfo/update',
    method: 'put',
    data: data
  })
}

// 删除金额明细
export function delAmountInfo(id) {
  return request({
    url: '/course/AmountInfo/delete/' + id,
    method: 'delete'
  })
}
